using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmBidCommittee")]
    public class BidCommittee
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Display(Name = "BidCommitteeId", ResourceType = typeof(Resources.BidCommitteeResource))]
        public int BidCommitteeId { get; set; }

		[ForeignKey("Bid")]
		[DataMember, Display(Name = "BidId", ResourceType = typeof(Resources.BidCommitteeResource))]
        public Nullable<int> BidId { get; set; }

        [ForeignKey("CommitteeFunction")]
        [DataMember, Display(Name = "CommitteeFuncId", ResourceType = typeof(Resources.BidCommitteeResource))]
        public int CommitteeFuncId { get; set; }

        [ForeignKey("CommitteePosition")]
        [DataMember, Display(Name = "CommitteePosId", ResourceType = typeof(Resources.BidCommitteeResource))]
        public int CommitteePosId { get; set; }

        [DataMember, Display(Name = "BidCommitteeRefNo", ResourceType = typeof(Resources.BidCommitteeResource))]
        public int BidCommitteeRefNo { get; set; }

        [ForeignKey("CommitteeType")]
        [DataMember, Display(Name = "CommitteeTypeId", ResourceType = typeof(Resources.BidCommitteeResource))]
        public int CommitteeTypeId { get; set; }

        [ForeignKey("Employee")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.BidCommitteeResource))]
        public Nullable<int> EmpId { get; set; }

        [DataMember, Display(Name = "BidCommitteeExName", ResourceType = typeof(Resources.BidCommitteeResource))]
        public string BidCommitteeExName { get; set; }

        [DataMember, Display(Name = "BidCommitteeExDescr", ResourceType = typeof(Resources.BidCommitteeResource))]
        public string BidCommitteeExDescr { get; set; }

		[DataMember, Display(Name = "DeleteReason", ResourceType = typeof(Resources.BidCommitteeResource))]
        public string DeleteReason { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.BidCommitteeResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.BidCommitteeResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.BidCommitteeResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.BidCommitteeResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.BidCommitteeResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember, Display(Name = "RestoredBy", ResourceType = typeof(Resources.BidCommitteeResource))]
        public Nullable<int> RestoredBy { get; set; }

		[DataMember, Display(Name = "RestoredWhen", ResourceType = typeof(Resources.BidCommitteeResource))]
        public Nullable<System.DateTime> RestoredWhen { get; set; }
    
		[DataMember, Display(Name = "Bid", ResourceType = typeof(Resources.BidCommitteeResource))]
        public virtual Bid Bid { get; set; }

        [DataMember]
        public virtual ICM.MasCommitteeFunction CommitteeFunction { get; set; }

        [DataMember]
        public virtual ICM.MasCommitteePosition CommitteePosition { get; set; }

        [DataMember]
        public virtual ICM.SysCommitteeType CommitteeType { get; set; }

        [DataMember]
        public virtual HRM.Employee Employee { get; set; }

    }
}